package org.basic.mail.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.basic.common.excel.annotation.ExcelDictFormat;
import org.basic.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.basic.mail.domain.SysMailAccount;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 邮箱账号视图对象 sys_mail_account
 *
 * @author Shao Hua
 * @date 2023-07-27
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysMailAccount.class)
public class SysMailAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 邮箱
     */
    @ExcelProperty(value = "邮箱")
    private String mail;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名")
    private String username;

    /**
     * SMTP 服务器域名
     */
    @ExcelProperty(value = "SMTP 服务器域名")
    private String host;

    /**
     * 密码
     */
    private String password;
    /**
     * SMTP 服务器端口
     */
    @ExcelProperty(value = "SMTP 服务器端口")
    private Long port;

    /**
     * 是否开启 SSL
     */
    @ExcelProperty(value = "是否开启 SSL", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_mail_ssl")
    private Integer sslEnable;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;


}
